package com.atguigu.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * @author zhaoyuqiang
 * @create 2022/5/7 6:24
 * @description 自定义异常
 */
public class CustomerBlockHandler {
    public static CommonResult<Object> handlerException(BlockException exception) {
        return new CommonResult<>(4444, "按客戶自定义,global handlerException----1");
    }

    public static CommonResult<Object> handlerException2(BlockException exception) {
        return new CommonResult<>(4444, "按客戶自定义,global handlerException----2");
    }
}
